package cn.Dao;

import cn.Entity.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import javax.persistence.NamedNativeQuery;
import java.util.HashMap;
import java.util.List;
import java.util.Properties;


//@Service
@Repository
public interface EmployeeDao extends BaseMapper<Employee> {


    public static final String DATA_SOURCE_TO = "datasource";


    public Employee selectOne(Integer id);
    public List<Employee> findAll();

    public void addOne(Employee employee);

    public void updateOneSalary(@Param("salary") Float salary, @Param("id") Integer id);

    public void deleteOne(Integer id);

    public List<Employee> listSalaryLessThanFiveThousandAndAgeLargeThenAge(Integer age);


}
